<?php
namespace pinduoduo\Request;

use pinduoduo\AbstractInterface\Request;

class PddDdkThemeListGetRequest extends Request
{

    /**
     * 已废弃
     * 多多进宝主题列表查询
     * @var string
     */
    private $type = 'pdd.ddk.theme.list.get';

    /**
     * 返回的页码
     * @var
     */
    private $page;

    /**
     * 返回的一页数据数量
     * @var
     */
    private $pageSize;

    public function setType($type)
    {
        $this->type = $type;
    }

    public function getType()
    {
        return $this->type;
    }

    public function setPage($page)
    {
        $this->page = $page;
    }

    public function getPage()
    {
        return $this->page;
    }

    public function setPageSize($pageSize)
    {
        $this->pageSize = $pageSize;
    }

    public function getPageSize()
    {
        return $this->pageSize;
    }

    public function getParams()
    {
        $params = [
            'type'      => $this->type,
            'page'      => $this->page,
            'page_size' => $this->pageSize,
        ];
        return array_filter($params);
    }
}
